package cn.craftyun.serverlist.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 服务器实体类
 * </p>
 *
 * @author FanHuaCloud
 * @since 2021-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Server implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 服务器名称
     */
    private String name;

    /**
     * 头衔
     */
    private String title;

    /**
     * 服务器IP
     */
    @TableField("server_addr")
    private String serverAddr;

    /**
     * 服务器版本
     */
    @TableField("server_version")
    private String serverVersion;

    @TableField("server_state")
    private Integer serverState;

    @TableField("img_show")
    private String imgShow;

    @TableField("img_full")
    private String imgFull;

    @TableField(exist = false)
    private List<String> imgFulls;

    private String qqGroupId;

    private String javaVersion;

    private String updateVersion;

    private String serverProfit;

    private String serverType;

    private String vvName;

    private String announcement;

    private String packageUrl;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    private User user;
}
